<template>
  <div class="openShop">
    <avue-crud
      ref="crud"
      style="width:100%"
      :page.sync="page"
      :data="loadData"
      :option="tableOption"
      :table-loading="loading"
      @size-change="sizeChange"
      @current-change="currentChange"
    >
      <template slot="menu" slot-scope="scope">
        <el-button @click="peidan(scope.row)" type="text" icon="el-icon-s-management">入库</el-button>
        <el-button @click="del(scope.row)" type="text" icon="el-icon-document-delete">完成</el-button>
        <el-button @click="details(scope.row)" type="text" icon="el-icon-view">详情</el-button>
      </template>
    </avue-crud>
  </div>
</template>

<script src='./openShop.js'></script>

<style lang="scss">
.openShop {
  margin: 10px 0px;
}
</style>